<?php
/**
 * Created by PhpStorm.
 * User: George
 * Date: 2017/9/25
 * Time: 10:19
 */

namespace AdminBundle\Report;


abstract class Task
{
    protected $task = [];    // 上传任务数据
    protected $em = null;      // DB mamager
    protected $device = [];  // 设备信息
    protected $ip = '';      // client request ip addess.
    protected $username = '';    // TOKEN请求用户

    abstract public function report();

    public function setUsername($username)
    {
        $this->username = $username;
        return $this;
    }

    public function setIp($ip)
    {
        $this->ip = $ip;
        return $this;

    }

    public function setDoctrineManager($em)
    {
        $this->em = $em;
        return $this;
    }

    public function setTask($task)
    {
        $this->task = $task;
        return $this;
    }

    public function setDevice($device)
    {
        $this->device = $device;
        return $this;
    }

}